FROM openjdk:8-jre-slim

RUN echo "---------ruoyi-monitor.jar模块开始构建...----------"
ENV JAVA_OPTS=""
# spring可设置的应用参数
ENV APP_PARAMS=""
RUN rm -f /etc/localtime \
&& ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
COPY ./target/ruoyi-monitor.jar /ruoyi-monitor.jar

EXPOSE 10003

WORKDIR /

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS  -jar ruoyi-monitor.jar $APP_PARAMS"]

RUN echo "---------ruoyi-monitor.jar模块构建完毕!!!----------"
